package com.awn.weidian.demo.mapper;

import java.util.List;

import com.awn.weidian.demo.pojo.Shopcar;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;






@Mapper
public interface IshopCar {

	@Select("select * from shopcart ")
	public List<Shopcar> showAll();
	
	
	@Insert("insert into shopcart (uid,gid,cartnumber,carttime) values (#{uid},#{gid},#{cartnumber},#{carttime})")
	public int addAll(Shopcar dept);
	
	
	@Update("update shopcart set uid=#{uid},gid=#{gid},cartnumber=#{cartnumber},carttime=#{carttime} where uid=#{uid}")
	public int updateAll(Shopcar dept);
	
	
	@Delete("delete shopcart where uid=#{uid}")
	public int deleteAll(Shopcar dept);
	
	

	
}